package broadcast

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import com.wsq.broadcastdemo.MainActivity

class MyReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        Log.e("MyReceiver", "onReceive:" + intent.getStringExtra(MainActivity.KEY))
    }
}